from flask import Flask

app = Flask(__name__)

# 装饰器
def wapper(func):
    def inner(*args, **kwargs):
        return func(*args, **kwargs)
    return inner

@app.route('/index', methods=['GET', 'POST'])
def index():
    return 'xxxx'


if __name__ == '__main__':
    app.run()